package org.he.basic.mapper;

import org.apache.ibatis.annotations.Param;
import org.he.basic.query.BaseQuery;
import org.he.org.domain.Department;
import org.he.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

/**
 * @author He
 * @date 2023/11/30  23:43
 */
public interface BaseMapper<T> {
    void insert(T department);

    void delete(Serializable id);

    void update(T department);

    T queryById(Serializable id);

    List<T> queryAll();

    long queryTotal(BaseQuery departmentQuery);

    List<T> queryList(BaseQuery departmentQuery);

    void batchDelete(List<Long> ids);
}
